package com.gk.carshopsys.dao;
import com.gk.carshopsys.pojo.Admin;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import java.util.List;

@Repository
@Mapper
public interface AdminDao {


    //根据id和用户名查找用户
    public List<Admin> findAdminByIdAndUsername(@Param("id")Integer id,@Param("username") String username);

    //查找管理员用户名
    public List<String> findAdminUsername(String username);

    //查找管理员账户
    public Admin findAdmin(String username);


    //添加用户
    public int addAdmin(Admin add_admin);

    //更新用户
    public int updateAdmin(Admin update_admin);

    ////删除用户
    public  int delAdmin(List<Integer> idlist);




}
